package com.itheima.sh.c_Practice;
/*
 目标：if的第三种格式
 if(条件1) {
     语句体1
  }else if(条件2){
     语句体2
   }
   ....
  else{
       语句N
  }
 */
public class IfElseDemo03 {
    public static void main(String[] args) {
        int score=90;
        if(score>=0 && score<60){
            System.out.println("D");
        }else if(score<=60&&score<80){
            System.out.println("C");
        }else if(score>=80&&score <90){
            System.out.println("B");
        }else if(score<=90&&score<=100){
            System.out.println("A");
        }else{
            System.out.println("您输入的分数有误");
        }
    }
}
